< previous page page_29 next page >

Page 29
0029-01.jpg
Figure 2.14
Clicking the drop-down arrow for
the Alignment property allows you
to select from predefined settings.
You should now be able to see how the Label control will aid the user in determining what to type in the first text box. Create three more Label controls, one for each of the remaining text boxes. Use the recommended values for the Name and Caption properties outlined in Table 2.1 (don't forget to set the Alignment property as well). When you're finished, your form should look like the one shown in Figure 2.15.
Table 2.1 Name and Caption Properties for the Loan Calculator Program's Label Controls
Name PropertyCaption Property
lblPrincipalPrincipal:
lblIntRateAnnual Interest Rate (%):
lblTermTerm (Years):
lblPaymentMonthly Payment:

0029-02.jpg
Figure 2.15
The Loan Calculator program's labels show
the user what to enter in the text boxes.
Adding a Command Button
cbutton.gif So far, your sample application's form has a set of text boxes to accept the user's input, and a set of labels to identify those text boxes. You also need some way for the user to initiate actionsthis is the purpose of CommandButton controls. A user can click a CommandButton

 
< previous page page_29 next page >